<?php

namespace App\Kuafu\Shop\Service\CameraLibrary;

use App\Kuafu\Shop\Service\ShopService;
use Illuminate\Database\Eloquent\Model;

class CameraBase
{
    protected Model $shopInfo;
    protected Model $cameraModel;

    public function __construct(?Model $cameraModel)
    {
        if (!empty($cameraModel)) {
            $this->shopInfo    = ShopService::getShopInfo($cameraModel->shopId);
            $this->cameraModel = $cameraModel;
        }

        static::init();
    }
}

